.class Lcom/example/m6wmr/wxapi/WXEntryActivity$6;
.super Ljava/lang/Thread;
.source "WXEntryActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/wxapi/WXEntryActivity;->bangding()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/wxapi/WXEntryActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$6;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    .line 534
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 7

    .prologue
    .line 536
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 539
    new-instance v5, Ljava/lang/StringBuilder;

    iget-object v6, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$6;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    iget-object v6, v6, Lcom/example/m6wmr/wxapi/WXEntryActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v6}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 540
    const-string v6, "/index.php?ctrl=app&action=wxlogin&datatype=json&openid="

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$6;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    iget-object v6, v6, Lcom/example/m6wmr/wxapi/WXEntryActivity;->openid:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "&phone="

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$6;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    iget-object v6, v6, Lcom/example/m6wmr/wxapi/WXEntryActivity;->phone_phone:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "&phonecode="

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$6;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    # getter for: Lcom/example/m6wmr/wxapi/WXEntryActivity;->getAuthCode:Ljava/lang/String;
    invoke-static {v6}, Lcom/example/m6wmr/wxapi/WXEntryActivity;->access$8(Lcom/example/m6wmr/wxapi/WXEntryActivity;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    .line 539
    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 541
    .local v4, "url":Ljava/lang/String;
    const-string v5, "get>>>>>>>>>>>>>>>>>>>>"

    invoke-static {v5, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 542
    iget-object v5, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$6;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    iget-object v5, v5, Lcom/example/m6wmr/wxapi/WXEntryActivity;->m:Lmyapp/MyApp;

    invoke-static {v4, v5}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v3

    .line 543
    .local v3, "str":Ljava/lang/String;
    const-string v5, "get>>>>>>>>>>>>>>>>>>>>"

    invoke-static {v5, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 544
    iget-object v5, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$6;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    invoke-static {v5, v3}, Lcom/example/m6wmr/wxapi/WXEntryActivity;->access$11(Lcom/example/m6wmr/wxapi/WXEntryActivity;Ljava/lang/String;)V

    .line 545
    new-instance v2, Landroid/os/Message;

    invoke-direct {v2}, Landroid/os/Message;-><init>()V

    .line 548
    .local v2, "msg":Landroid/os/Message;
    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v3}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 549
    .local v1, "json":Lorg/json/JSONObject;
    const-string v5, "error"

    invoke-virtual {v1, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    const-string v6, "true"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_0

    .line 552
    const-string v5, "msg"

    invoke-virtual {v1, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v2, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 553
    const/4 v5, 0x1

    iput v5, v2, Landroid/os/Message;->arg1:I

    .line 554
    iget-object v5, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$6;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    # getter for: Lcom/example/m6wmr/wxapi/WXEntryActivity;->h:Landroid/os/Handler;
    invoke-static {v5}, Lcom/example/m6wmr/wxapi/WXEntryActivity;->access$12(Lcom/example/m6wmr/wxapi/WXEntryActivity;)Landroid/os/Handler;

    move-result-object v5

    invoke-virtual {v5, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 572
    .end local v1    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 559
    .restart local v1    # "json":Lorg/json/JSONObject;
    :cond_0
    const/16 v5, 0xf

    iput v5, v2, Landroid/os/Message;->arg1:I

    .line 560
    iget-object v5, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$6;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    # getter for: Lcom/example/m6wmr/wxapi/WXEntryActivity;->h:Landroid/os/Handler;
    invoke-static {v5}, Lcom/example/m6wmr/wxapi/WXEntryActivity;->access$12(Lcom/example/m6wmr/wxapi/WXEntryActivity;)Landroid/os/Handler;

    move-result-object v5

    invoke-virtual {v5, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 564
    .end local v1    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v0

    .line 566
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    .line 567
    const/16 v5, 0xc

    iput v5, v2, Landroid/os/Message;->arg1:I

    .line 569
    iget-object v5, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$6;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    # getter for: Lcom/example/m6wmr/wxapi/WXEntryActivity;->h:Landroid/os/Handler;
    invoke-static {v5}, Lcom/example/m6wmr/wxapi/WXEntryActivity;->access$12(Lcom/example/m6wmr/wxapi/WXEntryActivity;)Landroid/os/Handler;

    move-result-object v5

    invoke-virtual {v5, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 577
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 578
    monitor-exit p0

    return-void

    .line 577
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
